package com.topdt.jbpm.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;





/**
 * 
 * 建立日期 : 2014-11-7 上午09:20:24<br>
 * 作者 : zhangyong<br>
 * 模块 : <br>
 * 描述 : <br>应用授权
 * 修改历史: 序号 日期 修改人 修改原因 <br>
 * 1 <br>
 * 2 <br>
 */
@Entity
@Table(name = "wf_app_authority")
public class AppAuthority  extends JbpmModel  {
	public static final String TYPE_PER="per";
	public static final String TYPE_DEPT="dept";
	public static final String TYPE_ROLE="role";
	
    // Fields    
	private static final long serialVersionUID = 6255239393084189224L;

	@Id
	@GeneratedValue(generator = "generator")
	@GenericGenerator(name = "generator", strategy = "uuid")
	@Column(length = 32)
     private String authorityId;
     private String appId;
     private String authorityType;
     private String authorityData;
     private String authorityDataName;
     
     
     
     

    // Constructors

    public String getAuthorityDataName() {
		return authorityDataName;
	}

	public void setAuthorityDataName(String authorityDataName) {
		this.authorityDataName = authorityDataName;
	}

	/** default constructor */
    public AppAuthority() {
    }

	/** minimal constructor */
    public AppAuthority(String authorityId) {
        this.authorityId = authorityId;
    }
    

   
    // Property accessors

    public String getAuthorityId() {
        return this.authorityId;
    }
    
    public void setAuthorityId(String authorityId) {
        this.authorityId = authorityId;
    }


    public String getAppId() {
        return this.appId;
    }
    
    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAuthorityType() {
        return this.authorityType;
    }
    
    public void setAuthorityType(String authorityType) {
        this.authorityType = authorityType;
    }

    public String getAuthorityData() {
        return this.authorityData;
    }
    
    public void setAuthorityData(String authorityData) {
        this.authorityData = authorityData;
    }

    public String getCompanyId() {
        return this.companyId;
    }
    
    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }
   








}